-
Notifications
You must be signed in to change notification settings - Fork 87
Rewrite: breakOut (fix #46) #70
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Woohoo, this is AWESOME! I’ve left a few minor comments but that looks great!
val xs = List(1, 2, 3) | ||
|
||
xs.collect{ case x => x }(breakOut): Set[Int] | ||
xs.flatMap(x => List(x))(breakOut): Set[Int] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you also try with a sorted result? SortedSet[Int]
for instance.
xs.scanLeft(0)((a, b) => a + b)(breakOut): Set[Int] | ||
xs.union(xs)(breakOut): Set[Int] | ||
xs.updated(0, 1)(breakOut): Set[Int] | ||
xs.zip(xs)(breakOut): Array[(Int, Int)] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you try with a Map[Int, Int]
?
op match { | ||
case operatorsIterator(_) => "iterator" | ||
case operatorsView(_) => "view" | ||
case _ => throw new Exception("impossible") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe add a comment referring to the definition of operatorSymbols
, explaining why that makes that path impossible to reach?
@julienrf all comments addressed. |
version bumps, and modernize .travis.yml
No description provided.